package luogu;

import java.util.Scanner;

public class Main4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        if (b>a&&c<a){
            System.out.println(c+" "+a+" "+b);
        } else if (b>a&&c>a) {
            if (b>c){
                System.out.println(a+" "+c+" "+b);
            }else {
                System.out.println(a+" "+b+" "+c);
            }
        } else if (b<a&&c>a) {
            System.out.println(b+" "+a+" "+c);
        } else if (b<a&&c<a) {
            if (b>c){
                System.out.println(c+" "+b+" "+a);
            }else {
                System.out.println(b+" "+c+" "+a);
            }
        }else {
            System.out.println(b+" "+c+" "+a);
        }
    }
}
